package com.lnsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.lnsystem.dao.StockDao;
import com.lnsystem.model.Stock;
import com.lnsystem.service.StockService;

public class StockServiceImpl implements StockService {

	
	@Autowired
	StockDao stockDao;
	
	public void updateSymbolList() {
		List<Stock> stockList = stockDao.getAllSymbols();
		System.out.println(">>>Got "+stockList.size()+" stocks from database..");
		System.out.println(">>> Printing all stocks from the database : ");
		for(Stock stock : stockList) {
			System.out.println(">>>> "+stock.toString());
		}

	}

	public void updateStockData() {
		// TODO Auto-generated method stub

	}

}
